 <div class="span-19">
                <div id="content">
                    <h1>List Station</h1>
                    <form method="post" action="<?php echo base_url('line/startend/'.$id); ?>">
                    <?php foreach($station as $item) :?>
                            <?php
                            switch($item['position_station']) {
                                        case 'START':  
                                            echo '<div class="view START">';                                
                                            break;
                                        case 'END':
                                            echo '<div class="view END">';                                
                                            break;
                                        break;
                                        default:
                                            echo '<div class="view">';                                
                                            break;                                                                             
                            }
                            echo "ID: $item[id]<br />";
                            echo "Name: $item[name]<br />";
                            echo "Position Start: $item[position_station]<br />";
                            echo "Line: $item[line_id]<br />";?>
                            <select name="startend[]">
                                <option value="">SELECT</option>
                                <option value="START">START</option>
                                <option value="END">END</option>
                            </select> 
                            <input type="hidden" name="sid[]" value="<?php echo $item['id']; ?>"/>
                    <?php echo '</div>';endforeach; ?>  
                    <div style="text-align: center;"><input type="submit" name="yt0" value="Set Start-End"/></div> 
                    </form>                 
                </div> <!-- content -->
</div>
<div class="span-5 last">
    <div id="sidebar">
        <div class="portlet" >
            <div class="portlet-decoration">
                <div class="portlet-title">Operations</div>
            </div>
            <div class="portlet-content">
                <ul class="operations" >
                    <li><a href="<?php echo base_url();?>line/display">List Line</a></li>
                    <li><a href="<?php echo base_url();?>line/index">Create Line</a></li>
                    <li><a href="<?php echo base_url();?>line/update/<?php echo $id; ?>">Update Line</a></li>
                    <li><a href="<?php echo base_url();?>line/delete/<?php echo $id; ?>" onclick="return confirm('Do you want to delete this line?');">Delete Line</a></li>
                    <li><a href="<?php echo base_url();?>line/manage">Manage Line</a></li>
                    <li><a href="<?php echo base_url();?>line/startend/<?php echo $id; ?>">Set Station Start-End</a></li>
                    <li><a href="<?php echo base_url();?>line/inter/<?php echo $id; ?>">Set Station Inter</a></li>
                    <li><a href="<?php echo base_url();?>line/vehicle/<?php echo $id; ?>">Set Vehicles</a></li>
                </ul></div>
        </div>	
    </div><!-- sidebar -->
</div>
